<?php

class Application_Model_DbRow_AuthToken
    extends Zend_Db_Table_Row_Abstract
{
    public function getUser()
    {
        return $this->findParentRow('Application_Model_DbTable_Users');
    }

    public function setLifetime($lifetime)
    {
        $this->expires_at = time() + $lifetime;
    }
}